#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <string>
#include <regex>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <thread>
#include <Windows.h>
using namespace std;
namespace MetaCloudDownloader {

	class Downloader {
	public:
		Downloader(string, string);
		void FetchEachPart(void);
		int CountParts(void);
		~Downloader(void);
		void Merge(void);
		void DeleteParts(void);
	private:
		int counts;
		int processes;
		void ExecuteCommand(string, bool);
		string lessonId;
		string courseId;
		string urlBase;
		string outputFileName;
	};
}